<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

include '../../../readcookie.php';
include '../../../db.php';

$id=$_POST['id'];
$type=$_POST['typeID'];
$view= $_POST['view'];
$title=mysql_real_escape_string($_POST['title']);
$price=mysql_real_escape_string($_POST['price']);
$start=mysql_real_escape_string($_POST['start']);
$stop=mysql_real_escape_string($_POST['stop']);
$location=mysql_real_escape_string($_POST['location']);
$content=mysql_real_escape_string($_POST['content']);
$mcontent=mysql_real_escape_string($_POST['morecontent']);
$img=mysql_real_escape_string($_POST['img']);
$video=mysql_real_escape_string($_POST['vid']);
$xquery="UPDATE Event SET
event_title = '$title',
event_view = '$view',
event_type = '$type',
event_start = '$start',
event_stop = '$stop',
event_description = '$content',
event_more = '$mcontent',
event_location = '$location',
event_price = '$price',
event_img = '$img',
event_video = '$video'

WHERE
event_id = '$id'";

mysql_query($xquery) or die('Error, insert query failed');
header('Location: "../../../../../index2.php?plugin=extravaganza&page=single');
?>
